#include "mypipe.hpp"
#include <string.h>
using namespace std;


int main()
{
    //创建写端
    Pipe<char> pi;
    char* shmaddr = pi.grtshmaddr();
    char* str;
    while(cin >> str)
    {
        strcpy(shmaddr,str);
    }
    

    return 0;
}